<#include "common/_layout.html"/> <@layout>

<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">以下信息用于接收报警，方便同事联系</h3>
	</div>
	<div class="panel-body">
		<div class="form-group">
			<label for="name">中文名（可以附带上部门、工位号之类的做详细区分）：</label> <input
				type="text" name="cnname" id="cnname" class="form-control"
				value="${(me.cnname)!}" />
		</div>
		<div class="form-group">
			<label for="email">邮箱：</label> <input type="text" name="email"
				id="email" class="form-control" value="${(me.email)!}" />
		</div>
		<div class="form-group">
			<label for="phone">手机：</label> <input type="text" name="phone"
				id="phone" class="form-control" value="${(me.phone)!}" />
		</div>
		<div class="form-group">
			<label for="name">IM（填写公司内部的通讯工具账号，比如百度用hi，小米用米聊）：</label> <input
				type="text" name="im" id="im" class="form-control"
				value="${(me.im)!}" />
		</div>
		<div class="form-group">
			<label for="name">QQ：</label> <input type="text" name="qq" id="qq"
				class="form-control" value="${(me.qq)!}" />
		</div>
		<button type="button" class="btn btn-primary" id="update_profile" onclick="update_profile();">更新个人信息</button>
	</div>
</div>
<#if (!ldapEnabled)>
<div class="panel panel-warning">
	<div class="panel-heading">
		<h3 class="panel-title">修改密码</h3>
	</div>
	<div class="panel-body">
		<div class="form-group">
			<label for="old_password">输入旧密码：</label> <input type="password"
				name="old_password" id="old_password" class="form-control" />
		</div>
		<div class="form-group">
			<label for="new_password">输入新密码：</label> <input type="password"
				name="new_password" id="new_password" class="form-control" />
		</div>
		<div class="form-group">
			<label for="repeat_password">重复输入新密码：</label> <input type="password"
				name="repeat_password" id="repeat_password" class="form-control" />
		</div>
		<button type="submit" class="btn btn-warning" id="change_password" onclick="change_password();">修改密码</button>
	</div>
</div>
</#if>
</@layout>
